Code Repository Blog

Exploring web development through code

My First Web Project

Date: 2023-04-05

This was my first attempt at building a responsive website using HTML and CSS. I learned about flexbox and media queries to make the layout adapt to different screen sizes.


<div class="container">
  <div class="item">Item 1</div>
  <div class="item">Item 2</div>
  <div class="item">Item 3</div>
</div>
                

JavaScript Tips

Date: 2023-04-07

Here are some JavaScript best practices I've learned:

  • Use const instead of var wherever possible
  • Always handle errors with try/catch
  • Use arrow functions for concise syntax

const greet = (name) => {
    return `Hello, ${name}!`;
};
                

Dark Mode Implementation

Date: 2023-04-09

Implementing dark mode can improve user experience. Here's how I did it:


    body.dark {
    background: #1e1e1e;
    color: #eee;
}
                
< AngryDroid Webring Button >